{* Smarty *}
<form action="javascript:void(null)" method="post" onsubmit="ajax_process_form('{$smarty.const.MODULE_EXPERIMENT}', '{$smarty.const.EXPERIMENT_ACTION_NEXT_STEP}', xajax.getFormValues(this)); return false;">
<div class="header">
	Analysis of data
</div>
{include file="errors_wrapper.tpl" errors=$errors}
<input type="hidden" name="exp" value="analysis" />
<div>
<table>
	<tr>
		<td class="header">Chain characteristics</td>
		<td class="headermargin30">Uniforchain characteristics</td>
	</tr>
	<tr>
		<td>
		 {iterator from=$characteristic item=item composite=false}
			<div class="line6" onclick=" document.getElementById('chain_{$item->chain_characteristic_type_description->get_value()}').checked = document.getElementById('chain_{$item->chain_characteristic_type_description->get_value()}').checked == true ?   false : true">
				<input class="checkbox" type="checkbox" id="chain_{$item->chain_characteristic_type_description->get_value()}.{$item->chain_characteristic_type_id->get_value()}" name="chain_{$item->chain_characteristic_type_description->get_value()}.{$item->chain_characteristic_type_id->get_value()}" onclick=" document.getElementById('chain_{$item->chain_characteristic_type_description->get_value()}').checked = document.getElementById('chain_{$item->chain_characteristic_type_description->get_value()}').checked == true ?   false : true" value="checked"> 
				{$item->chain_characteristic_type_description->get_value()}
			</div> 	
		{/iterator}
		</td>
		<td>
		 {iterator from=$characteristic item=item composite=false}
			<div class="line6marginleft" onclick=" document.getElementById('uniform_chain_{$item->chain_characteristic_type_description->get_value()}').checked = document.getElementById('uniform_chain_{$item->chain_characteristic_type_description->get_value()}').checked == true ?   false : true">
				<input class="checkbox" type="checkbox" id="uniform_chain_{$item->chain_characteristic_type_description->get_value()}.{$item->chain_characteristic_type_id->get_value()}"  name="uniform_chain_{$item->chain_characteristic_type_description->get_value()}.{$item->chain_characteristic_type_id->get_value()}" onclick=" document.getElementById('uniform_chain_{$item->chain_characteristic_type_description->get_value()}').checked = document.getElementById('uniform_chain_{$item->chain_characteristic_type_description->get_value()}').checked == true ?   false : true" value="checked"> 
				{$item->chain_characteristic_type_description->get_value()}
			</div> 	
		{/iterator}
		</td>
		<td>
		 {iterator from=$characteristic item=item composite=false}
			<div class="line2">
				<select name="uniform_chain_{$item->chain_characteristic_type_description->get_value()}_select.{$item->chain_characteristic_type_id->get_value()}" >
					<option value="Name">Name</option>
					<option value="Value">Value</option>
				</select>
			</div> 	
		{/iterator}
		</td>
	<tr>
</div>

</table>
<div>
	Cluster count 
	<input type="text" name="cluster_count" value="" />
</div>
<div>
	Method select 
	<select name="method_select" >
		<option value="Simple">Simple</option>
		<option value="Less">Less</option>
		<option value="All">All</option>
	</select>		
</div>
<div>
	<input type="button" name="add_chain" value="Add chain"	onclick="ajax_switch_content('{$smarty.const.MODULE_EXPERIMENT}', '{$smarty.const.EXPERIMENT_ACTION_ADD_OBJECT_TYPE_FOR_CHAIN}', 'chain');" />
	<select name="chain_value_type_select" >
		<option value="Start">Start</option>
		<option value="Both">Both</option>
		<option value="End">End</option>
	</select>		
</div>
<div id="table"></div>
<div id="process">
	<input type="button" name="back" value="Cancel" onclick="document.location.href='{url module=$MODULE action=$smarty.const.EXPERIMENT_ACTION_CANCEL}';" />
	<input type="submit" name="go" value="Next" />
</div>
</form>
